import 'package:flutter_fronter_service/generated/json/base/json_field.dart';
import 'package:flutter_fronter_service/generated/json/sku_entity.g.dart';
import 'dart:convert';

import 'package:flutter_fronter_service/model/properties_entity.dart';
export 'package:flutter_fronter_service/generated/json/sku_entity.g.dart';

@JsonSerializable()
class SkuEntity {
	late int id = 0;
	late int itemStock = 0;
	 late double goodsPrice = 0.0;
	 late String goodsName = "";
	late String itemImg = '';
	late List<PropertiesEntity> itemSpec = [];

	SkuEntity();

	factory SkuEntity.fromJson(Map<String, dynamic> json) => $SkuEntityFromJson(json);

	Map<String, dynamic> toJson() => $SkuEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}